Skip to content

Conversation

@eriksimonic
Copy link

When we generate the models we need to have the ID of the property and the class.-
I Extended the PropertyModel and ClassTemplateModel to include the Id.
Property respects the inheritance.

_settings = settings;
_resolver = typeResolver;

Id = property.Id;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Id = property.Id ?? property.ActualSchema.Id;

Can a property have its own id?
Maybe also use a derived property like the Name?

.Select(property => new PropertyModel(this, property, _resolver, _settings))
.ToArray();

Id = _schema.Id;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a derived/calculated property?

@RicoSuter
Copy link
Owner

Add some tests?

@RicoSuter
Copy link
Owner

What is the schema/property id?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants